package org.rency.ues.domain.response;

import org.rency.common.utils.domain.BaseResult;
import org.rency.ues.common.UesDict;

/**
 * ${todo}
 *
 * @author: Created by user_rcy@163.com on 2016/8/2.
 * @version: V1.0.0
 * @since JDK 1.8
 */
public class EncryptResponse extends BaseResult {

    private String ticket;

    private String encryptKey;

    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    public String getEncryptKey() {
        return encryptKey;
    }

    public void setEncryptKey(String encryptKey) {
        this.encryptKey = encryptKey;
    }

    public static EncryptResponse success(){
        EncryptResponse resp = new EncryptResponse();
        resp.setSuccess(true);
        resp.setReturnMessage(UesDict.CHINESE_SUCCESS_MSG);
        return resp;
    }

    public static EncryptResponse fail(String returnMessage){
        EncryptResponse resp = new EncryptResponse();
        resp.setSuccess(false);
        resp.setReturnMessage(returnMessage);
        return resp;
    }
}